Skip to content

refactor(runtime): Rehome legacy admin adapters#1167

Merged
leumor merged 2 commits intodevelopfrom
feature/pr-76-runtime-admin
Mar 24, 2026
Merged

refactor(runtime): Rehome legacy admin adapters#1167
leumor merged 2 commits intodevelopfrom
feature/pr-76-runtime-admin

Conversation

@leumor
Copy link
Collaborator

@leumor leumor commented Mar 24, 2026

Summary

  • move the legacy admin/page-oriented runtime adapter implementations out of network.crypta.node.runtime into network.crypta.runtime.admin
  • add AdminRuntimePortsFactory and AdminRuntimePortsBundle so LegacyRuntimePorts consumes the moved adapter cluster without directly constructing those concrete classes
  • move the direct adapter tests into network.crypta.runtime.admin, keep LegacyRuntimePortsTest in place, and keep the new package docs doclint-clean

Validation

./gradlew compileJava compileTestJava
./gradlew test \
  --tests "network.crypta.node.runtime.LegacyRuntimePortsTest" \
  --tests "network.crypta.runtime.admin.LegacyConnectionsPagePortTest" \
  --tests "network.crypta.runtime.admin.LegacyDiagnosticPortTest" \
  --tests "network.crypta.runtime.admin.LegacyFirstTimeWizardPortTest" \
  --tests "network.crypta.runtime.admin.LegacyQueuePagePortTest" \
  --tests "network.crypta.runtime.admin.LegacyStatisticsPortTest" \
  --tests "network.crypta.runtime.admin.LegacyWelcomeActionPortTest" \
  --tests "network.crypta.runtime.admin.LegacyWelcomePagePortTest" \
  --tests "network.crypta.clients.http.FProxyRegistrarTest" \
  --tests "network.crypta.clients.http.QueueToadletTest" \
  --tests "network.crypta.clients.http.FirstTimeWizardToadletTest" \
  --tests "network.crypta.clients.http.StatisticsToadletTest" \
  --tests "network.crypta.clients.http.WelcomeToadletTest"

Notes

  • no runtime-spi public API changes
  • no Gradle module or settings.gradle.kts changes
  • the unrelated local Archive.zip file was intentionally left out of the branch

leumor added 2 commits March 24, 2026 19:21
Move the page-oriented legacy runtime adapters into network.crypta.runtime.admin and construct them through AdminRuntimePortsFactory.

Update LegacyRuntimePorts to consume the bundle, move the direct adapter tests into the new package, and keep LegacyRuntimePortsTest verifying the relocated concrete types without widening adapter visibility.

Also add doclint-clean Javadoc for the newly added admin package files.
Preserve the original NodeL10n base around UserAlertManagerTest's test translation setup so the suite does not leak a test-only bundle into later runtime/admin tests.

This makes the full Gradle test run order-independent again.
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
63.0% Coverage on New Code (required ≥ 80%)
5.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@leumor leumor merged commit 3f2ac4c into develop Mar 24, 2026
7 of 8 checks passed
@leumor leumor deleted the feature/pr-76-runtime-admin branch March 24, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant